NewTradeOrderRequestDTO

Description

A request to trade and open a new position with a market order.

 

Properties

Name Type Description
MarketId integer

The unique identifier for a market.

Currency string

Currency to place order in.

AutoRollover boolean

Flag to indicate whether the trade will automatically roll into the next market interval when the current market interval expires. Only applies to markets where the underlying is a futures contract.

Direction string

Direction identifier for order/trade, values supported are Buy or Sell.

Quantity number
format decimal

Size of the order/trade.

QuoteId integer
nullable true

The unique quote identifier.

PositionMethodId integer
nullable true

Indicates the position of the trade. 1 == LongOrShortOnly, 2 == LongAndShort.

BidPrice number
format decimal

The field is mandatory. Market prices are quoted as a pair (buy/sell or bid/offer), the BidPrice is the lower value of the pair.

OfferPrice number
format decimal

The field is mandatory. Market prices are quote as a pair (buy/sell or bid/offer), the OfferPrice is the higher value of the pair.

AuditId string

Unique identifier for each price tick. Read this value from the prices stream. This should be populated by the Row_Update_Version field in the Lightstreamer message. Treat it as a unique but random string.

TradingAccountId integer

The ID of the trading account associated with the trade/order request.

IfDone ApiIfDoneDTO

List of If/Done Orders that will be filled when the initial trade/order is triggered. (Optional).

Close integer[]

List of existing open trade order IDs that require part or full closure.

Reference string A reference code to identify the source origin of the trade order request. API calls should use the string: StoneX API.
AllocationProfileId integer

ID of the allocation profile to use if this is a Trading Advisor trade.

OrderReference string The order reference for this new trade request - only applicable where source is set. (Optional).
Source string The source of the trade order request. (Optional).
PriceTolerance integer
nullable true
Sets the amount of slippage you are willing to accept to get the trade executed. Values are in the range 0 - 1000.

 

Last updated: 23 July 2024

 

 

 

Copyright © 2025 StoneX